select p.state state, price_value priceValue, date date from realty_object ro
join price p on p.realty_object_id = ro.id
where ro.external_id = ${externalId}
order by p.date asc